import vueHelper from './libs/vue-helper';
import clipboard from 'vue-clipboard2';

import App from "./App";
import store from "~/store";

import router from "./router";

// 复制到剪切板组件注册
clipboard.config.autoSetContainer = true;

const restoreConfig = {
  enable: false,
  identityUrl: `/api/User/${sessionStorage.getItem('sid')}`,
  logOnUrl: '/logOn'
};

vueHelper.init(App, router, store, restoreConfig, vue => vue.use(clipboard));